package com.atguigu.gmall.feign.cart;

import com.atguigu.gmall.cart.entity.CartInfo;
import com.atguigu.gmall.cart.vo.AddItemVo;
import com.atguigu.gmall.cart.vo.AddSuccessVo;
import com.atguigu.gmall.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * @author lfy
 * @Description
 * @create 2023-07-29 11:52
 */
@FeignClient("service-cart")
@RequestMapping("/api/inner/cart")
public interface CartFeignClient {

    @PostMapping("/addtocart")
    Result<Map<String,Object>> addToCart(@RequestBody AddItemVo vo);

    @GetMapping("/delete/checked")
    Result deleteChecked();

    @GetMapping("/checked/list")
    Result<List<CartInfo>> getChecked();
}
